package com.spring.sd.ignore;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * beanFactory.ignoreDependencyInterface()方法测试
 */
@SpringBootApplication
public class MainTest {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MainTest.class, args);

        A a = context.getBean(A.class);
        System.out.println("------------ 容器关闭 ------------");
        context.close();
    }
}
